from abc import ABCMeta, abstractmethod


class TablerateAbc(classmethod=ABCMeta):

    @abstractmethod
    def __init__(self, book='book1'):
        self.book = book
        self.rate = None

    @abstractmethod
    def getrate(self):
        return self.rate